<?php 

require_once "cabecalho.php"; 

$texto=DB::find(7,"textos");
$wallpapers=DB::fetchTodos("*","wallpapers");

?>

	<div class="separator top-separator content left"></div>
	<div class="separator top-separator content right"></div>
	
	<div id="main" class="content fullwidth">
		
		<h1 class="article-title">Wallpapers</h1>

		<p><?php echo $texto['texto']; ?></p>
		
		<div class="gallery">
			<ul class="clearfix">
				<?php foreach($wallpapers as $v): ?>
				<li>
					<a href="admin/<?php echo $v["arquivo"]; ?>" rel="lightbox" title="Image Title">
					<img width="192" height="130" src="admin/<?php echo $v["arquivo"]; ?>" alt="Image Title" /></a>
				</li>
				<?php endforeach; ?>
			</ul>
			
		</div>
		
		<ul class="pagination" style="display: none;">
			<li class="first"><a href="#" class="disabled">Início</a></li>
			<li class="prev"><a href="#" class="disabled">Anterior</a></li>
			<li><a href="#" class="disabled">1</a></li>
			<li><a href="#" title="2">2</a></li>
			<li class="next"><a title="Next" href="#">Próximo</a></li>
			<li class="last"><a title="End" href="#">Fim</a></li>
		</ul>
		
	</div><!-- end main -->
	
<?php require_once "rodape.php"; ?>